package com.book.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.book.pojo.Shoucang;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author cxy
 * @since 2023-10-13 15:50:00
 */
@Mapper
public interface ShoucangDao extends BaseMapper<Shoucang> {

    List<Long> selectBidsByRid(@Param("rid") Long rid);

    void insertShoucang(@Param("rid") Long rid, @Param("bid") Long bid);

    void deleteShoucang(@Param("rid") Long rid, @Param("bid") Long bid);

    Shoucang selectBookNumByBid(Long bid);

    List<Shoucang> CollectRanking();


}
